public class User {
    public static void main(String[] args) {}
        String UserName;

        String password;

        public boolean login (String userNameParam, String passwordParam){
            System.out.println("传递过来的用户名：" + userNameParam);
            System.out.println("传递过来的密码" + passwordParam);
            if (userNameParam.equals("admin") && passwordParam.equals("12345678")) {
                return true;
            } else {
                return false;

            }
        }
    }